package com.inspectortime.mail.service;

import freemarker.template.TemplateException;

public class EmailDeliveryException extends Exception {

	private String ftlInstructionStack;
	
	public String getFtlInstructionStack() {
		return ftlInstructionStack;
	}

	public void setFtlInstructionStack(String ftlInstructionStack) {
		this.ftlInstructionStack = ftlInstructionStack;
	}

	public EmailDeliveryException(String message, TemplateException cause) {
		super(message, cause);
		this.ftlInstructionStack = cause.getFTLInstructionStack();
	}
	
	public EmailDeliveryException(String message, Throwable cause) {
		super(message, cause);
	}

	public EmailDeliveryException(String message) {
		super(message);
	}
}
